#include "Renderer_PCH.h"
#include "RTexture.h"

/*--------------------------------------------------------------------------*/

RTexture::RTexture( const std::string& name ) :
	m_name(name),
	m_handle(0)
{

}

/*--------------------------------------------------------------------------*/

RTexture::~RTexture()
{
	if (m_handle != 0)
	{
		glDeleteTextures(1, &m_handle);
	}
}

/*--------------------------------------------------------------------------*/

uint RTexture::GetHandle() const
{
	return m_handle;
}

/*--------------------------------------------------------------------------*/

uint RTexture::GetWidth() const
{
	return m_width;
}

/*--------------------------------------------------------------------------*/

uint RTexture::GetHeight() const
{
	return m_height;
}

/*--------------------------------------------------------------------------*/